package modele;

public class WaitCell extends AbstractCell {

	int turnsToWait;

	public WaitCell(int i) {
		this.numCell = i;
		this.typeCell = "wait";
		this.turnsToWait = 2;
	}

	@Override
	public int handleMove(int diceThrow) {
		this.turnsToWait = 2;
		return getIndex();
	}

	@Override
	public boolean canBeLeftNow() {
		if (turnsToWait > 0) {
			turnsToWait--;
			return false;
		} else
			return true;
	}

}
